import { _decorator, Component, Node, Widget } from 'cc';
import {PandaManager} from "db://assets/Script/PandaManager";
import {RedPackManager} from "db://assets/Script/RedPackManager";
import {pathEnum} from "db://assets/Enum";
const { ccclass, property } = _decorator;

@ccclass('GameManager')
export class GameManager extends Component {
    start() {
        const pandaManager = this.node.getChildByName(pathEnum.PANDA).getComponent(PandaManager);
        pandaManager.getComponent(PandaManager).init()
        const redPackManager = this.node.getChildByName(pathEnum.RED_PACK).getComponent(RedPackManager);
        redPackManager.getComponent(RedPackManager).play()
    }
}


